state-transition method

状态过渡法